- 
          
 - 
                Notifications
    
You must be signed in to change notification settings  - Fork 33.7k
 
module: improve typescript error message format #57687
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
          
     Closed
      
      
    
                
     Closed
            
            
          Conversation
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
    | 
           Review requested: 
  | 
    
          Codecov ReportAll modified and coverable lines are covered by tests ✅ 
 Additional details and impacted files@@           Coverage Diff           @@
##             main   #57687   +/-   ##
=======================================
  Coverage   90.23%   90.23%           
=======================================
  Files         630      630           
  Lines      185055   185073   +18     
  Branches    36221    36221           
=======================================
+ Hits       166984   167009   +25     
+ Misses      11043    11036    -7     
  Partials     7028     7028           
 🚀 New features to boost your workflow:
  | 
    
              
                    legendecas
  
              
              approved these changes
              
                  
                    Mar 30, 2025 
                  
              
              
            
            
| 
           Windows ofc 😫  | 
    
d845cac    to
    9fb2f5f      
    Compare
  
    
              
                    aduh95
  
              
              approved these changes
              
                  
                    Mar 31, 2025 
                  
              
              
            
            
              
                    RafaelGSS
  
              
              approved these changes
              
                  
                    Mar 31, 2025 
                  
              
              
            
            
| 
           Landed in 0d91070...1c2d98d  | 
    
    
  nodejs-github-bot 
      added a commit
      that referenced
      this pull request
    
      Apr 1, 2025 
    
    
      
  
    
      
    
  
PR-URL: #57687 Fixes: #56830 Reviewed-By: Chengzhong Wu <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Rafael Gonzaga <[email protected]>
    
  nodejs-github-bot 
      pushed a commit
      that referenced
      this pull request
    
      Apr 1, 2025 
    
    
      
  
    
      
    
  
PR-URL: #57687 Fixes: #56830 Reviewed-By: Chengzhong Wu <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Rafael Gonzaga <[email protected]>
    
  JonasBa 
      pushed a commit
        to JonasBa/node
      that referenced
      this pull request
    
      Apr 11, 2025 
    
    
      
  
    
      
    
  
PR-URL: nodejs#57687 Fixes: nodejs#56830 Reviewed-By: Chengzhong Wu <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Rafael Gonzaga <[email protected]>
    
  JonasBa 
      pushed a commit
        to JonasBa/node
      that referenced
      this pull request
    
      Apr 11, 2025 
    
    
      
  
    
      
    
  
PR-URL: nodejs#57687 Fixes: nodejs#56830 Reviewed-By: Chengzhong Wu <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Rafael Gonzaga <[email protected]>
    
  RafaelGSS 
      pushed a commit
      that referenced
      this pull request
    
      May 1, 2025 
    
    
      
  
    
      
    
  
PR-URL: #57687 Fixes: #56830 Reviewed-By: Chengzhong Wu <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Rafael Gonzaga <[email protected]>
    
  RafaelGSS 
      pushed a commit
      that referenced
      this pull request
    
      May 1, 2025 
    
    
      
  
    
      
    
  
PR-URL: #57687 Fixes: #56830 Reviewed-By: Chengzhong Wu <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Rafael Gonzaga <[email protected]>
    
  RafaelGSS 
      pushed a commit
      that referenced
      this pull request
    
      May 2, 2025 
    
    
      
  
    
      
    
  
PR-URL: #57687 Fixes: #56830 Reviewed-By: Chengzhong Wu <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Rafael Gonzaga <[email protected]>
    
  RafaelGSS 
      pushed a commit
      that referenced
      this pull request
    
      May 2, 2025 
    
    
      
  
    
      
    
  
PR-URL: #57687 Fixes: #56830 Reviewed-By: Chengzhong Wu <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Rafael Gonzaga <[email protected]>
    
  marco-ippolito 
      added a commit
        to marco-ippolito/node
      that referenced
      this pull request
    
      Jun 25, 2025 
    
    
      
  
    
      
    
  
PR-URL: nodejs#57687 Fixes: nodejs#56830 Reviewed-By: Chengzhong Wu <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Rafael Gonzaga <[email protected]>
    
  marco-ippolito 
      pushed a commit
        to marco-ippolito/node
      that referenced
      this pull request
    
      Jun 25, 2025 
    
    
      
  
    
      
    
  
PR-URL: nodejs#57687 Fixes: nodejs#56830 Reviewed-By: Chengzhong Wu <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Rafael Gonzaga <[email protected]>
    
  marco-ippolito 
      added a commit
        to marco-ippolito/node
      that referenced
      this pull request
    
      Jul 3, 2025 
    
    
      
  
    
      
    
  
PR-URL: nodejs#57687 Fixes: nodejs#56830 Reviewed-By: Chengzhong Wu <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Rafael Gonzaga <[email protected]>
    
  marco-ippolito 
      pushed a commit
        to marco-ippolito/node
      that referenced
      this pull request
    
      Jul 3, 2025 
    
    
      
  
    
      
    
  
PR-URL: nodejs#57687 Fixes: nodejs#56830 Reviewed-By: Chengzhong Wu <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Rafael Gonzaga <[email protected]>
    
  marco-ippolito 
      added a commit
        to marco-ippolito/node
      that referenced
      this pull request
    
      Jul 3, 2025 
    
    
      
  
    
      
    
  
PR-URL: nodejs#57687 Fixes: nodejs#56830 Reviewed-By: Chengzhong Wu <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Rafael Gonzaga <[email protected]>
    
  marco-ippolito 
      pushed a commit
        to marco-ippolito/node
      that referenced
      this pull request
    
      Jul 3, 2025 
    
    
      
  
    
      
    
  
PR-URL: nodejs#57687 Fixes: nodejs#56830 Reviewed-By: Chengzhong Wu <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Rafael Gonzaga <[email protected]>
    
  marco-ippolito 
      added a commit
      that referenced
      this pull request
    
      Jul 4, 2025 
    
    
      
  
    
      
    
  
PR-URL: #57687 Backport-PR-URL: #57298 Fixes: #56830 Reviewed-By: Chengzhong Wu <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Rafael Gonzaga <[email protected]> PR-URL: #56350 Fixes: nodejs/typescript#17
    
  marco-ippolito 
      pushed a commit
      that referenced
      this pull request
    
      Jul 4, 2025 
    
    
      
  
    
      
    
  
PR-URL: #57687 Backport-PR-URL: #57298 Fixes: #56830 Reviewed-By: Chengzhong Wu <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Rafael Gonzaga <[email protected]> PR-URL: #56350 Fixes: nodejs/typescript#17
    
  RafaelGSS 
      pushed a commit
      that referenced
      this pull request
    
      Jul 15, 2025 
    
    
      
  
    
      
    
  
PR-URL: #57687 Backport-PR-URL: #57298 Fixes: #56830 Reviewed-By: Chengzhong Wu <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Rafael Gonzaga <[email protected]> PR-URL: #56350 Fixes: nodejs/typescript#17
    
  RafaelGSS 
      pushed a commit
      that referenced
      this pull request
    
      Jul 15, 2025 
    
    
      
  
    
      
    
  
PR-URL: #57687 Backport-PR-URL: #57298 Fixes: #56830 Reviewed-By: Chengzhong Wu <[email protected]> Reviewed-By: Antoine du Hamel <[email protected]> Reviewed-By: Rafael Gonzaga <[email protected]> PR-URL: #56350 Fixes: nodejs/typescript#17
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
      Labels
      
    backported-to-v22.x
  PRs backported to the v22.x-staging branch. 
  
    commit-queue-rebase
  Add this label to allow the Commit Queue to land a PR in several commits. 
  
    lib / src
  Issues and PRs related to general changes in the lib or src directory. 
  
    needs-ci
  PRs that need a full CI run. 
  
    strip-types
  Issues or PRs related to strip-types support 
  Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    
Fixes: #56830
This PR improves the error messages generated by the transpiler.
Node.js v23.9.0:
This PR:
It removes the internal file path:
Removes the padding boxing the message:
In general it blends better with Node.js error style.
There is still an improvement to make that involves removing the whitespace around:
This depends from SWC and its currently being fixed.